Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codegen spec for ProcPointer of virtual type #14903

Merged

Conversation

HertzDevil
Copy link
Contributor

The spec in #10964 is breaking the JIT because it is trying to return a Proc, which comprises 2 Void*s and therefore isn't supported by LLVM::GenericValue. The same would have happened if the spec were written like this:

run(<<-CRYSTAL)
  x = uninitialized ->
  x
  CRYSTAL

Turning it into a typed spec (#14090) gets rid of this implicit value.

@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 14, 2024
@straight-shoota straight-shoota merged commit be4a20b into crystal-lang:master Aug 15, 2024
65 checks passed
@HertzDevil HertzDevil deleted the spec/virtual-proc-pointer branch September 8, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs topic:compiler:codegen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants